package cn.rengy.web.framework.wxmp.material;

import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.rengy.lang.ResultEntity;

@Controller
@RequestMapping(value = "/authenticated/material")
public class MaterialController {
	private static Logger logger = LoggerFactory.getLogger(MaterialController.class);
	@Autowired
	private MaterialService materialService;
	
	@RequestMapping(value="/pull",method = RequestMethod.POST)
	@ResponseBody
	public ResultEntity customerMsg (@RequestBody(required=false) Map<String,Object> paramMap) throws Exception{
		materialService.pull();
		return ResultEntity.ok();
	}
	
}
